#include "main.h"

int main(int argc, char **argv)
{
    SDL_Surface *ecran = NULL;

    if(SDL_Init(SDL_INIT_VIDEO) == -1)
    {
        fprintf(stderr, "SDL: %s\n", SDL_GetError());
        exit (0);
    }

    if(TTF_Init() == -1)
    {
        fprintf(stderr, "TTF: %s\n", TTF_GetError());
        exit (0);
    }
    srand(time(NULL));

    ecran = SDL_SetVideoMode(LARGEUR, HAUTEUR, 32, SDL_HWSURFACE);
    SDL_WM_SetCaption("SudoQ v.1.0.1", NULL);

    menu(ecran);


    SDL_Quit();
    TTF_Quit();
    (void)argc;
    (void)argv;

    return EXIT_SUCCESS;
}

